/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package services;

import facade.EstadisticaFacadeLocal;
import javax.ejb.EJB;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import java.util.List;
import java.util.Date;

/**
 *
 * @author ari
 */
@WebService(serviceName = "EstadisticaWebService")
public class EstadisticaWebService {
    @EJB
    private EstadisticaFacadeLocal estadisticaFacade;

    /**
     * Web service operation
     */
    @WebMethod(operationName = "obtenerEstadisticas")
    public List<String> obtenerEstadisticas() {
        //TODO write your implementation code here:
        return estadisticaFacade.obtenerEstadistica(new Date());
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "obtenerEmpresas")
    public List<String> obtenerEmpresas() {
        //TODO write your implementation code here:
        return estadisticaFacade.obtenerEmpresas(new Date());
    }
    
}
